package io.lvdaxian.mybatis09.reflection.wrapper;

import io.lvdaxian.mybatis09.reflection.MetaObject;

/**
 * 默认 的对象 wrapper 工厂
 *
 * @author lihh
 */
public class DefaultObjectWrapperFactory implements ObjectWrapperFactory {
  @Override
  public boolean hasWrapperFor(Object object) {
    return false;
  }
  
  @Override
  public ObjectWrapper getWrapperFor(MetaObject metaObject, Object object) {
    throw new RuntimeException("The DefaultObjectWrapperFactory should never be called to provide an ObjectWrapper.");
  }
}
